package com.hyf.dagger2.di.module;

import com.hyf.dagger2.MainActivity;
import com.hyf.dagger2.di.component.BaseActivityComponent;
import com.hyf.dagger2.ui.NoPresenterActivity;

import dagger.Module;
import dagger.android.ContributesAndroidInjector;

/**
 * Created by HyFun on 2018/11/20.
 * Email: 775183940@qq.com
 * Description:
 */

@Module(subcomponents = BaseActivityComponent.class)
public abstract class BaseAllActivityModule {
    @ContributesAndroidInjector(modules = MainActivityModule.class)
    abstract MainActivity contributesMainActivityInjector();

    @ContributesAndroidInjector(modules = NoPresenterActivityModule.class)
    abstract NoPresenterActivity contributesNoPresenterActivityInjector();
}
